#ifndef DISPLAYWIDGET_H
#define DISPLAYWIDGET_H

#include "global.h"
#include <QWidget>
#include <QKeyEvent>

class DisplayWidget : public QWidget
{
    Q_OBJECT
public:
    explicit DisplayWidget(QWidget *parent = 0, int number = 0);
    virtual SCREENTYPE type()=0;
    virtual int screenNumber()=0;
    void endThis();

protected:
    int screenNo;

signals:
    void contentRepaint();

public slots:
    void keyPressEvent(QKeyEvent *keyEvent);
    virtual void drawClock() {}
    void repaint() {emit contentRepaint();}
};

#endif // DISPLAYWIDGET_H
